package com.wdb007.venus.svc.facade;

import java.util.List;

import com.alibaba.fastjson.JSONObject;
import com.wdb007.venus.svc.facade.banner.model.BannerImgDTO;
import com.wdb007.venus.svc.facade.book.model.BookShelfDTO;
import com.wdb007.venus.svc.facade.book.model.BookShelfPageDTO;
import com.wdb007.venus.svc.facade.exception.BizException;

public interface BookShelfService {

	int insert(BookShelfDTO bookShelf) throws BizException;
	
	int update(BookShelfDTO bookShelf) throws BizException;
	
	BookShelfDTO get(String code) throws BizException;
	
	List<BookShelfDTO> list() throws BizException;
	
	List<BookShelfDTO> listByLocation(BookShelfDTO bookShelf, Integer mapType) throws BizException;
	
	int remove(String code) throws BizException;
	
	BookShelfDTO getNearest(BookShelfDTO bookShelf, Integer mapType) throws BizException;
	
	List<BannerImgDTO> getBannerImgList() throws BizException;
	
	BookShelfPageDTO queryshelfList(BookShelfDTO bookShelf, Integer mapType, Integer offset, Integer pagesize) throws BizException;
	
	void heartBeat(JSONObject data);
	
	String getVersion(String bookcaseId) throws BizException;
	
	String getPolicyInfo(String bookcaseId) throws BizException;
	
	String getModel(String bookcaseId) throws BizException;
}
